package xin.sparrow.thread.demo2;

/**
 * Created by wancheng on 2019/10/16.
 */
public class SyncObjectThread extends Thread{

    private SyncObject syncObject;

    public SyncObjectThread(SyncObject syncObject) {
        this.syncObject = syncObject;
    }

    public SyncObjectThread(String name) {
        super();
        this.setName(name);
    }
    @Override
    public void run() {
        syncObject.say("傻屌,猪头----------");
    }

}
